package com.eralink.unionuhfreader.util;

import java.util.HashMap;

public class ReaderFinderReportDataParseUtil {
    public static void parse(String report_data, HashMap<String, String> items) {
        // ip=192.168.101.192;mac_address=0004620A2204;version=V3.0.1;name=ELT-G46;net_mode=1
        System.out.printf("report data: %s\n", report_data);
        final String[] fields = report_data.split(";");
        for (String field: fields) {
            final String[] fieldPair = field.split("=");
            items.put(fieldPair[0], fieldPair[1]);
        }
    }
}
